<template>
	<view class="content">
		<scroll-view scroll-y="true" style="height: 98vh;">
			<uni-table border >
				<uni-tr>
					<uni-th align="center">日期</uni-th>
					<uni-th align="center">全局流水</uni-th>
					<uni-th align="center">擂台流水</uni-th>
				</uni-tr>
				<uni-tr v-for="(item, index) in list">
					<uni-td align="center">{{index}}</uni-td>
					<uni-td align="center">
						{{item.all}}
					</uni-td>
					<uni-td align="center">
						{{item.leitai}}
					</uni-td>
				</uni-tr>
			</uni-table>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		
		onLoad() {
			this.water()
		},
		
		methods:{
			water(){
				this.$http('/user/amount_day', 'GET').then(res => {
					console.log(res);
					this.list = res.data
					
				})
			},
		}
		
	}
</script>

<style lang="scss">
	.content{
		width: 100%;
		height: 100vh;
		
		.uni-table{
			min-width: 100% !important;
		}
	}
</style>
